import { createWebHistory, createRouter } from 'vue-router'

import DriverData from '../components/driverData/DriverData.vue';
import VehicleData from '../components/vehcleData/VehicleData.vue';
import uploadSuccess from '../components/uploadSuccess/UploadSuccess.vue';

const routes = [
  { path: '/', redirect: '/driver' },
  { path: '/driver', component: DriverData },
  { path: '/vehicle', component: VehicleData },
  { path: '/success', component: uploadSuccess },
]
const router = new createRouter(
  {
    history: createWebHistory(),
    routes,
  }
);

export default router;